package lab01;
import java.util.Scanner;
public class Excise01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        Employee employee = new Employee();
        System.out.println("请输入员工的名字：");
        employee.setName(scanner.nextLine());
        System.out.println("请输入员工的性别：");
        employee.setGender(scanner.nextLine());
        System.out.println("请输入员工的年龄：");
        employee.setAge(scanner.nextInt());
        System.out.println(employee.getName()+","+employee.getGender()+","+employee.getAge());

    }
    static class Employee{
        private String name;
        private String gender;
        private int age;

        public Employee() {
        }

        public Employee(String name, String gender, int age) {
            this.name = name;
            this.gender = gender;
            this.age = age;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getGender() {
            return gender;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }
}
/*
    请输入员工的名字：
     李峰
    请输入员工的性别：
     男
    请输入员工的年龄：
    18
    李峰,男,18

 */
